//
//  ReportEvent.m
//  Runone
//
//  Created by runone02 on 16/8/31.
//  Copyright © 2016年 runone. All rights reserved.
//

#import "ReportEvent.h"


#define ImageHeight       64
#define BottomeMargin     5
#define lineMargin        5
#define MidMargin         5

@implementation ReportEvent
{
    CGFloat _reportCellH ;
    
    CGFloat _searchReportCellH ;
}

- (CGFloat)reportCellH {
    CGSize maxSize   = CGSizeMake([UIScreen mainScreen].bounds.size.width - 60, MAXFLOAT);
    
    CGFloat dealHeight = [self.Content boundingRectWithSize:maxSize options:NSStringDrawingUsesLineFragmentOrigin attributes:@{NSFontAttributeName : [UIFont systemFontOfSize:14]} context:nil].size.height;
    _reportCellH = 100 +dealHeight;
    
    return _reportCellH ;
}

- (CGFloat)searchReportCellH {
    CGSize maxSize   = CGSizeMake([UIScreen mainScreen].bounds.size.width - 60, MAXFLOAT);
    
    CGFloat dealHeight = [self.Content boundingRectWithSize:maxSize options:NSStringDrawingUsesLineFragmentOrigin attributes:@{NSFontAttributeName : [UIFont systemFontOfSize:14]} context:nil].size.height;
    _searchReportCellH = 100 +dealHeight;
    
    return _searchReportCellH ;
}

@end
